#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
int main(void)
{
	printf("pid = %d\n",getpid());
	printf("uid = %d\n",getuid());
	printf("euid = %d\n",geteuid());
	printf("gid = %d\n",getgid());
	printf("ppid = %d\n",getppid());
	printf("pgrp = %d\n",getpgrp());
	printf("pgid = %d\n",getpgid(getpid()));
	return 0;
}
